import net from '../index'
import url from '../url'

export const queryOa = (query) => {
  return net.post(url.queryOa, query)
}
export const downloadOa = (query) => {
  return net.post(url.downloadOa, query)
}
export const queryTaskFiles = (query) => {
  return net.get(url.queryTaskFiles, query)
}


// 产权登记任务中心
export const queryTaskSub = (query) => {
  return net.post(url.queryTaskSub, query)
}
// 查询条件下拉
export const taskStatus = (query) => {
  return net.post(url.taskStatus, query)
}
export const taskType = (query) => {
  return net.post(url.taskType, query)
}
export const taskResource = (query) => {
  return net.post(url.taskResource, query)
}
// 新增任务（有决策支持文件）
export const addTaskFile = (query) => {
  return net.post(url.addTaskFile, query)
}
export const addTaskFileNo = (query) => {
  return net.post(url.addTaskFileNo, query)
}
export const economicItem = (query) => {
  return net.post(url.economicItem, query)
}
// 任务移交
export const transferTask = (query) => {
  return net.post(url.transferTask, query)
}
export const queryUserRole = (query) => {
  return net.post(url.queryUserRole, query)
}
// 任务关闭
export const taskClose = (query) => {
  return net.post(url.taskClose, query)
}
// 任务处理
export const queryRegisterTypeOa = query => {
  return net.get(url.queryRegisterTypeOa, query)
}
